package com.yan.demo;

import com.yan.domain.MyDate;

public class OOPDemo3 {
    public static void main(String[] args) {
        MyDate myDate = new MyDate();
        myDate.setYear(1900);
        myDate.setMouth(1);
        myDate.setDay(1);
        myDate.showDate();
        boolean leapYesr = myDate.isLeapYesr();
        if(leapYesr){
            System.out.println("1900年是闰年");
        }else{
            System.out.println("1900年不是闰年");
        }
    }
}
